package com.ouc.service.impl;

import com.ouc.entity.Line;
import com.ouc.mapper.LineMapper;
import com.ouc.service.LineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Name: LineServiceImpl
 * @Description:
 * @Author: Mr.Tong
 */
@Service
public class LineServiceImpl implements LineService {

    @Autowired
    private LineMapper lineMapper;


    @Override
    public List<Line> getAllLine() {
        return lineMapper.getAllLine();
    }

    @Override
    public Line getLineById(Integer id) {
        return lineMapper.getLineById(id);
    }

    @Override
    public List<Line> getLineByMaterialType(String materialType) {
        return lineMapper.getLineByMaterialType(materialType);
    }

    @Override
    public Line getLineByLineCode(String lineCode) {
        return lineMapper.getLineByLineCode(lineCode);
    }
}
